<template>
	<view class="body-x">
		<uni-title type="h2" align="center" :title="title"></uni-title>
		<u-image class="imag-x" v-if="img" width="100%" height="300rpx"  :src="img" :fade="true" duration="450"></u-image>
		<u-parse :html="content"></u-parse>
	</view>
</template>

<script>
export default {
	data() {
		return {
			title:'',
			img:'',
			content: '无内容'
					 
		};
	}
	,
	onLoad(v) {
		 const {title,content,preview_img} = JSON.parse( decodeURIComponent(v.data)) || {}
		 this.img = preview_img
		 this.title = title 
		 this.content =content
	}
};
</script>

<style lang="scss" scoped>
	.body-x {
		padding: 20rpx;
	}
	.imag-x {
		 margin: 24rpx 0;
	}
</style>
